package com.fdb.efp.nls.service.impl;

import com.fdb.basic.framework.core.base.FrameworkService;
import com.fdb.efp.nls.service.dao.ReconciliationDocumentsEnjoyTempDao;
import com.fdb.efp.nls.service.domain.ReconciliationDocumentsEnjoyTemp;
import com.fdb.efp.nls.service.facade.ReconciliationDocumentsEnjoyTempService;
import com.fdb.efp.nls.service.vo.ReconciliationDocumentsEnjoyTempVo;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 
 * 代偿汇总临时表实现类
 * 
 * @author liyakui
 * @since 2019年1月22日 下午3:38:26
 * @version 1.0
 */
@Service("reconciliationDocumentsEnjoyTempService")
public class ReconciliationDocumentsEnjoyTempServiceImp implements ReconciliationDocumentsEnjoyTempService, FrameworkService {
	private final static Logger logger = LoggerFactory.getLogger(ReconciliationDocumentsEnjoyTempServiceImp.class);
	@Autowired
	private ReconciliationDocumentsEnjoyTempDao reconciliationDocumentsEnjoyTempDao;

	/**
	 * 
	 * 查询代偿汇总临时表数据
	 * 
	 * @param reconciliationDocumentsEnjoyTemp
	 * @return
	 * @throws Exception
	 * @author liyakui
	 * @since 2019年1月22日 下午3:46:14
	 * @version 1.0
	 */
	@SuppressWarnings("unchecked")
	@Override
	public List<ReconciliationDocumentsEnjoyTempVo> queryReconciliationDocumentsEnjoyTemp(
			ReconciliationDocumentsEnjoyTempVo reconciliationDocumentsTempVo)
			throws Exception {
		logger.info("查询数据开始！参数：" + reconciliationDocumentsTempVo);
		List<ReconciliationDocumentsEnjoyTempVo> list = null;
		try {
			ReconciliationDocumentsEnjoyTemp reconciliationDocumentsEnjoyTemp = new ReconciliationDocumentsEnjoyTemp();
			beanCopy(reconciliationDocumentsTempVo, reconciliationDocumentsEnjoyTemp);
			List<ReconciliationDocumentsEnjoyTemp> reconciliationDocumentsEnjoyTemps = reconciliationDocumentsEnjoyTempDao
					.queryReconciliationDocumentsEnjoyTemp(reconciliationDocumentsEnjoyTemp);
			list = (List<ReconciliationDocumentsEnjoyTempVo>) beansCopy(reconciliationDocumentsEnjoyTemps,
					ReconciliationDocumentsEnjoyTempVo.class);
		} catch (Exception e) {
			e.printStackTrace();
			logger.debug("查询数据异常！" + e.getMessage());
			throw e;
		}
		return list;
	}

	@Override
	public int insert(ReconciliationDocumentsEnjoyTempVo record) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int insertSelective(ReconciliationDocumentsEnjoyTempVo record) {
		// TODO Auto-generated method stub
		return 0;
	}

}
